home *** CD-ROM | disk | FTP | other *** search
/ MacTech 1 to 12 / MacTech-vol-1-12.toast / Source / MacTech® Magazine / Volume 09 - 1993 / 09.07 Jul 93 / Bedrock Header Files / Common Includes / BRMath.h next >
Encoding:
C/C++ Source or Header  |  1993-04-17  |  1.3 KB  |  36 lines  |  [TEXT/MPS ]

  1. #ifndef BRMATH_H
  2. #define BRMATH_H
  3. //========================================================================================
  4. //
  5. //     File:        BRMath.h
  6. //     Release Version:    $ 1.0d1 $
  7. //
  8. //     Creation Date:    4/2/93
  9. //
  10. //     COPYRIGHT 1993 SYMANTEC CORPORATION. ALL RIGHTS RESERVED. UNPUBLISHED -- RIGHTS
  11. //     RESERVED UNDER THE COPYRIGHT LAWS OF THE UNITED STATES. USE OF COPYRIGHT NOTICE IS
  12. //     PRECAUTIONARY ONLY AND DOES NOT IMPLY PUBLICATION OR DISCLOSURE.
  13. //
  14. //     THIS SOFTWARE CONTAINS PROPRIETARY AND CONFIDENTIAL INFORMATION OF SYMANTEC
  15. //     CORPORATION. USE, DISCLOSURE, OR REPRODUCTION IS PROHIBITED WITHOUT THE PRIOR
  16. //     EXPRESS WRITTEN PERMISSION OF SYMANTEC CORPORATION.
  17. //
  18. //     RESTRICTED RIGHTS LEGEND
  19. //     Use, duplication, or disclosure by the Government is subject to restrictions as set
  20. //     forth in subparagraph (c)(l)(ii) of the Rights in Technical Data and Computer
  21. //     Software clause at DFARS 252.227-7013. Symantec Corporation, 10201 Torre Avenue,
  22. //     Cupertino, CA 95014.
  23. //
  24. //========================================================================================
  25.  
  26. template<class tType>
  27. tType BR_Minimum(tType a, tType b) { return a<b ? a : b; };
  28.  
  29. template<class tType>
  30. tType BR_Maximum(tType a, tType b) { return a>b ? a : b; };
  31.  
  32. template<class tType>
  33. tType BR_Absolute(tType a) { return a<0 ? -a : a; };
  34.  
  35. #endif
  36.